package com.yunhe.policyfulfillment.policyful.repository;
import com.yunhe.policyfulfillment.policyful.domain.PolicyInfoApplyMaterial;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @description 企业申请材料
 * @author hetao
 * @date 2021-08-24
 */
@Repository
public interface PolicyInfoApplyMaterialRepository {

    /**
     * 新增
     * @author hetao
     * @date 2021/08/24
     **/
    int createPolicyInfoApplyMaterial(PolicyInfoApplyMaterial policyInfoApplyMaterial);

    /**
     * 新增
     * @author hetao
     * @date 2021/08/24
     **/
    int createPolicyInfoApplyMaterialSelective(PolicyInfoApplyMaterial policyInfoApplyMaterial);

    /**
     * 刪除
     * @author hetao
     * @date 2021/08/24
     **/
    int deletePolicyInfoApplyMaterialByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author hetao
     * @date 2021/08/24
     **/
    int updatePolicyInfoApplyMaterialByPrimaryKey(PolicyInfoApplyMaterial policyInfoApplyMaterial);

    /**
     * 更新
     * @author hetao
     * @date 2021/08/24
     **/
    int updatePolicyInfoApplyMaterialByPrimaryKeySelective(PolicyInfoApplyMaterial policyInfoApplyMaterial);

    /**
     * 根据主键查询
     * @author hetao
     * @date 2021/08/24
     **/
    PolicyInfoApplyMaterial searchPolicyInfoApplyMaterialByPrimaryKey(@Param("id") int id);


    List<PolicyInfoApplyMaterial> findApplyMaterialsByApplyMatterId(@Param("applyMatterId")  Integer id);

    void deletePolicyInfoApplyMaterialByApplyMatterId(@Param("applyMatterId") int id);
}